package main

import "fmt"

//closure

func increase() func() int {
	x := 0
	return func() int {
		x++
		return x
	}
}

func main() {
	funcIncrease := increase()
	fmt.Println(funcIncrease())
	fmt.Println(funcIncrease())
}
